// 封装用户请求接口
import request from '@/utils/request'
import type { LoginParams , LoginResult, responseUserInfo, LogoutResult} from '@/types/user'

// 用户登录
export const loginAPI = (data: LoginParams) => {
    return request.post<any,LoginResult>('/admin/acl/index/login',data)
}

// 获取用户信息
export const getUserInfoAPI = () => {
    return request.get<any,responseUserInfo>('/admin/acl/index/info')
}

// 退出登录
export const loginOutAPI = () => {
    return request.post<any,LogoutResult>('/admin/acl/index/logout')
}
